CC=gcc
FLAGS=-fPIC -O2 -I../../ `pkg-config --cflags gtk+-2.0`
LDFLAGS=-I../../ `pkg-config --libs gtk+-2.0`

all:
	$(CC) $(FLAGS) -c -o redgui.o redgui.cpp
	$(CC) $(LDFLAGS) -shared -o redgui.so redgui.o
	chmod a-x redgui.so

install:
	rm *.o
	mv *.so ../../../modules/

clean:
	rm *~ *.o *.so
